package xyz.ddlnt.servicegeneralclient.client;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.multipart.MultipartFile;
import xyz.ddlnt.commonutil.result.Result;
import xyz.ddlnt.model.vo.FileUploadVO;
import xyz.ddlnt.servicegeneralclient.client.fallback.MinioFallbackFactory;


//@FeignClient(name = "service-general", url = "http://yixuewang-service-general:9013", path = "/minio", fallbackFactory = MinioFallbackFactory.class)
//@FeignClient(name = "service-general", url = "http://localhost:9003", path = "/minio", fallbackFactory = MinioFallbackFactory.class)
@FeignClient(value = "service-general", path = "/minio", fallbackFactory = MinioFallbackFactory.class)
//@RequestMapping("/customer/info")
public interface MinioFeignClient {

    @PostMapping(value = "/upload", consumes = "multipart/form-data")
    Result<FileUploadVO> upload(@RequestPart("file") MultipartFile file);

}